<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Request;


class PersonalArticle extends IndexController
{

	public function index()
	{

        $article_fa = db('article')->where('use_id',input('session.user.id'))->select();
        $this->assign('article_fa', $article_fa);

		return view('personal_article/index');
	}



	public function myHuifu()
	{

		$huifuList = Db::query("select a.id, a.title,a.ses_id,a.pubdate,a.count,a.check,a.last_replyer from bbs_article a,bbs_reply r where a.id=r.art_id and r.use_id=".input('session.user.id'));

		$this->assign('huifuList', $huifuList);

		return view('personal_article/my');
	}

	

}